package com.us.usws.common.resourcetree.model;

/**
 *
 * @author Wang Jianbo
 */
public class DefaultResourceTree extends AbstractTreeNode<DefaultResourceTree> {

	private String href;
	private String hrefTarget = "main_content";
	private boolean allowDrag = false;

	/**
	 * @return the allowDrag
	 */
	public boolean isAllowDrag() {
		return allowDrag;
	}

	/**
	 * @param allowDrag the allowDrag to set
	 */
	public void setAllowDrag(boolean allowDrag) {
		this.allowDrag = allowDrag;
	}

	public DefaultResourceTree(long id) {
		super(id);
	}

	public DefaultResourceTree(long id, String text) {
		super(id, text);
	}

	public DefaultResourceTree(long id, long parentId, String text) {
		super(id, text);
		setParentId(parentId);
	}

	/**
	 * @return the href
	 */
	public String getHref() {
		return href;
	}

	/**
	 * @param href the href to set
	 */
	public void setHref(String href) {
		this.href = href;
	}

	/**
	 * @return the hrefTarget
	 */
	public String getHrefTarget() {
		return hrefTarget;
	}

	/**
	 * @param hrefTarget the hrefTarget to set
	 */
	public void setHrefTarget(String hrefTarget) {
		this.hrefTarget = hrefTarget;
	}
}
